home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
allqtips.zip
/
TECH1.MSG
< prev
next >
Wrap
Text File
|
1992-08-05
|
2KB
|
46 lines
A QEdit Tip from the SemWare Technical Support Staff
.. Startup Macros ..
QEdit has the capability of loading and/or executing your
compiled macro files on startup through the use of command line
parameters. QEdit startup macro command line options were
implemented in QEdit Advanced v2.08. The macro files being used
must be in binary format created using the MacroWrite command
<Esc><M><W> command or QMAC (QEdit's macro translator).
To _load_ a macro from the command line enter "-l" or "/l" (a
dash or slash and the letter "l") followed immediately by a
macro filename. The maximum size of a loadable macro file is 2k.
The format for loading a macro follows:
q <filename to edit> -l<macro filename>
To _execute_ a macro from the command line enter "-e" or "/e"
followed immediately by a macro filename. The maximum size of
an executed macro is 500 bytes. The format for executing a
macro on startup follows:
q <filename to edit> -e<macro filename>
When using the execute ("-e or /e") option, the first macro in
the macrofile is executed. The macro is then executed only
after the file to be edited has been loaded. The macro file is
executed once and not loaded into the editor.
A filename must be supplied to QEdit to make use of the command
line parameters. Both the load and execute macro parameters may
be used at the same time. The order that they are specified on
the command line is not important. The format for executing a
macro and loading a macrofile on startup follows:
q <edit filename> -e<macro filename> -l<macro filename>
To illustrate the above, suppose you want to edit a file called
WORK.TMP and at the same time, from the command line, load the
macro file called FIRST.MAC and execute the macro file called
SECOND.MAC. From the command line you would enter:
q work.tmp -lfirst.mac -esecond.mac